import behaviors from "../../../../../../config/behaviors";

Component({
  behaviors: [behaviors],
  properties: {
    image: Object,
    list: Array
  },
  data: {},
  methods: {
    onCategory(event) {
      const item = event.currentTarget.dataset.item
      // wx.navigateTo({
      //   url: '/sub_product/pages/category/index?id=' + item.id
      // })
      getApp().globalData.categoryIndex = item.id
      wx.switchTab({
        url: '/pages/category/index'
      })
    },
    onMore() {
      wx.switchTab({
        url: '/pages/category/index'
      })
    },


  }
});
